package com.vodone.v1pin.core
{
	import flash.external.ExternalInterface;

	public class ExternalInterfaceManager
	{
		/**
		 * 首页 
		 */		
		public static const INDEX:String = "index";
		/**
		 * 用户页 
		 */		
		public static const USER:String = "user";
		
		/**
		 * flash加载完成 
		 * 
		 */		
		public static function productComplete():void
		{
			ExternalInterface.call( "productComplete" );
		}
		
		/**
		 * 通过导航跳转 
		 * @param navLevel
		 * @param navId
		 * 
		 */		
		public static function NavtatorURL( navLevel:int , navId:String ):void
		{
			ExternalInterface.call( "NavtatorURL" , navLevel, navId );
		}
		
		/**
		 * 非通过导行跳转 
		 * @param module
		 * @param channel
		 * 
		 */		
		public static function changeModuleView( module:String , channel:int = 0 ):void
		{
			ExternalInterface.call( "changeModuleView" , module , channel );
		}
		
		/**
		 * 弹出window框 
		 * @param module
		 * @param channel
		 * 
		 */		
		public static function openWindow( module:String , channel:int):void
		{
			ExternalInterface.call( "openWindow" , module , channel );
		}
	}
}